package com.ygsoft.example.facebook;

import org.apache.log4j.Logger;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

@Controller
public class SocialContoller {

	private static Logger log = Logger.getLogger(SocialContoller.class);

	public SocialContoller() {
		log.debug("FB Logger Activated ..");
	}

	@RequestMapping("/fb.do")
	public ModelAndView printWelcome() {
		log.info("Request FB from remote client ..");
		
		ModelAndView modelAndView = new ModelAndView();
		modelAndView.addObject("message", "Spring 3 MVC Hello World" + System.currentTimeMillis());
		modelAndView.setViewName("fbStudy");
		return modelAndView;
	}
}
